﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Configuration;

namespace KCL.Code.Data
{
    public class BaseDAO
    {
        protected string connectionString;
        protected string providerName;

        public BaseDAO()
        {
			connectionString = ConfigurationManager.ConnectionStrings["KCLConnectionString"].ConnectionString;
			providerName = ConfigurationManager.ConnectionStrings["KCLConnectionString"].ProviderName;
        }

        public SqlConnection GetConnection()
        {
            return new SqlConnection(connectionString);
        }
    }
}